#ifndef __SN32F280_KB_FLASH_H
#define __SN32F280_KB_FLASH_H


/*_____ I N C L U D E S ____________________________________________________*/
#include <SN32F280.h>
#include <SN32F200_Def.h>

#define	FLASH_PROGRAM_ONE_WORD 1	//** 1word
#define	FLASH_PROGRAM_ONE_PAGE 16 //** 16words

void Flash_ROM_Reset(void);
void Flash_Key_Reset(void);
void Flash_ROM_TestReset(void);
void KB_SaveParam_Flash(uint32_t ISP_TARGET_ADDR,uint8_t *pData,uint16_t offset,uint16_t dl);
void FLASH_IAP_ProgramPage (uint32_t adr, uint32_t sz, uint32_t* buf);
void FLASH_IAP_Program64B (uint32_t adr, uint32_t sz, uint32_t* buf);
#endif

